Skip to content

earlgrey: Add a uart loopback test #128

Open
cfrantz wants to merge 1 commit intoOpenPRoT:mainfrom
cfrantz:uart
Open

earlgrey: Add a uart loopback test #128
cfrantz wants to merge 1 commit intoOpenPRoT:mainfrom
cfrantz:uart

Conversation

@cfrantz
Copy link
Collaborator

@cfrantz cfrantz commented Mar 12, 2026

Test pigweed kernel interrupts by enabling UART interrupts and turning
on loopback on UART1.

Test pigweed kernel interrupts by enabling UART interrupts and turning
on loopback on UART1.

Signed-off-by: Chris Frantz <cfrantz@google.com>
@cfrantz cfrantz requested review from davexroth and moidx March 12, 2026 21:04
name = "no_panics_test",
binary = ":uart",
tags = [
# TODO(cfrantz): Fix this test.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add more details on why this test is disabled, and if possible, what steps are required to fix this?

name: "uart_interrupts",
type: "interrupt",
irqs: [
{ name: "uart1_tx_watermark", number: 10 },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these interrupt numbers eventually going to be available in a bzl config file once we migrate the static configuration to Bazel?


#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> ! {
loop {}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it ok for tests to log error if panic is triggered?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants